<?php foreach ($view->newcomments as $comments) { ?>
    <?php foreach ($comments as $c) { ?>

        <div class="bg_img_small">
            <div class="black_bg2" id="home-total-like-<?php echo $c['data_id']; ?>">
                <?php echo $c['total_like']; ?>
            </div>
            <div class="black_bg1">
                <?php echo substr($c['name'], 0, 20); ?><?php if (strlen($c['name']) > 15) { echo "...";} ?>
            </div>

            <a href="javascript:facebooktab.showLikeLightbox(<?php echo $c['data_id']; ?>);">
                <div style="height: 98px;overflow: hidden;">
                    <img src="<?php echo $c['facebook_user_picture']; ?>" alt="" class="" style="width: 151px;" />
                </div>                
            </a>
            
            <div id="like-area-<?php echo $c['data_id']; ?>" width="90" align="left" valign="middle" style="vertical-align: middle;text-align: center;padding-top: 2px;">
            <?php if(!$view->isEndOfContest) { ?>
                <?php if ($view->isLogined && ($c['is_liked'] > 0)) { ?>
                            <a href="javascript:contestapp.unlikecomment(<?php echo $c['data_id']; ?>)">
                                <img src="<?php echo $view->config['template_url']; ?>assets/img/760/stemed_btn_.png" alt="" />
                            </a>
                <?php } else { ?>
                            <a href="javascript:contestapp.likecomment(<?php echo $c['data_id']; ?>)">
                                <img src="<?php echo $view->config['template_url']; ?>assets/img/760/stam_btn.png" alt="" />
                            </a>
                <?php } ?>  
            <?php } else { ?>  
                <a href="javascript:contestapp.unlikecomment(<?php echo $c['data_id']; ?>)">
                    <img src="<?php echo $view->config['template_url']; ?>assets/img/760/stemed_btn_.png" alt="" />
                </a>
            <?php } ?>   
            </div>

        </div>
    <?php } ?>
<?php } ?> 
<div style="clear:left"></div>

